package com.shengzai

class Code08ClazzOp {
  var studentId: String = _
  var studentName: String = _
  var studentScore: Int = _

  def getMessage(): Unit = {
    println("getMessage()正在运行")
  }

  override def toString: String = {
    studentId + "\t" + studentName + "\t" + studentScore
  }

}
object Code08ClazzOpZz{
  def main(args: Array[String]): Unit = {
    val op = new Code08ClazzOp
    op.studentId = "121314"
    op.studentName ="王五"
    op.studentScore = 567
    println(op)
    op.getMessage()
  }

}